package com.superiron.scaffold.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.superiron.scaffold.dao.MenuRoleDao;
import com.superiron.scaffold.dao.UserRoleDao;
import com.superiron.scaffold.entity.MenuRoleEntity;
import com.superiron.scaffold.entity.RoleEntity;
import com.superiron.scaffold.entity.UserRoleEntity;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：yzg
 * @date ：Created in 2022/9/6 10:45
 * @description：
 * @modified By：
 * @version: $
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleDao, UserRoleEntity> implements UserRoleService{
	
	/**
	 * 获取用户的权限列表
	 *
	 * @param userId
	 *
	 * @return
	 */
	@Override
	public List<RoleEntity> queryUserRole(long userId) {
		return this.baseMapper.queryUserRole(userId);
	}
}
